// 入口文件
import Vue from 'vue';

//导入APP的根组件
import app from "./App.vue";
//按需引入mintui组件
import { Header ,Swipe, SwipeItem} from 'mint-ui';

Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

//导入mui样式
import "./lib/mui/css/mui.min.css";
import "./lib/mui/css/icons-extra.css";
//引入router.js
import router from "./router.js";

//引入路由包并安装路由
import VurRouter from "vue-router";
Vue.use(VurRouter);
//引入vue-resource获取数据
import VueResource from "vue-resource";
Vue.use(VueResource)






var vm = new Vue({
    el:"#app",
    render: c=>c(app),
    router //挂在router实例对象
});
